@inherits RenderViewPage
@using System.Web.Mvc.Html;
@using Umbraco.Cms.Web;
@using System.Xml;
@using System.ServiceModel.Syndication;
@using PBDesk.com.Extension.FeedsAggregator;
@using PBDesk.com.Extension.UmbHelper;
@{
	Layout = "_LayoutRss.cshtml";
}
@{
	
	string category = DynamicModel.FeedCategoryName;
	SyndicationFeed feed = FeedHelper.GetTechNewsFeeds(category);
	Rss20FeedFormatter rssFormatter = new Rss20FeedFormatter(feed);
	
	XmlTextWriter XML_Writer = new XmlTextWriter(HttpContext.Current.Response.OutputStream, System.Text.Encoding.UTF8);
	rssFormatter.WriteTo(XML_Writer);
	XML_Writer.Flush();      			
}
